import request from '@/utils/http'

// 获取问卷
export const questionnaire_answer = (params: any) => {
  return request.get({
    url: '/api/question/info/answer',
    data: params
  })
}
// 获取问卷
export const follow_info = (params: any) => {
  return request.get({
    url: '/api/follow/up/question/info',
    data: params
  })
}

export const questionnaire_save = (params: any) => {
  return request.post({
    url: '/api/question/info/save',
    data: params
  })
}
// 随访表单填完保存
export const questionnaireFollow_save = (params: any) => {
  return request.post({
    url: '/api/task/detail/follow/save',
    data: params
  })
}
// 随访表单填完保存
export const questionnaireFollow_answer = (params: any) => {
  return request.get({
    url: '/api/follow/up/question/answer',
    data: params
  })
}

export const new_question = (params: any) => {
  return request.get({
    url: '/api/question/info/getQuestionnaireInfo',
    data: params
  })
}
export const weight_save = (params: any) => {
  return request.post({
    url: '/api/question/info/save',
    data: params
  })
}
